﻿using Hrm.Core;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.EntityFramework
{
    public class StudioDbContext : BaseDbContext
    {
        #region Properties

        public DbSet<BlogPost> BlogPosts { get; set; }
        public DbSet<BlogComment> BlogComments { get; set; }
        public DbSet<BlogTag> BlogTags { get; set; }
        public DbSet<Portfolio> Portfolios { get; set; }
        public DbSet<Service> Services { get; set; }
        public DbSet<PriceType> PriceTypes { get; set; }
        public DbSet<PriceItem> PriceItems { get; set; }
        public DbSet<Image> Images { get; set; }
        public DbSet<TeamMenber> TeamMenbers { get; set; }
        public DbSet<Skill> Skills { get; set; }
        public DbSet<Email> Emails { get; set; }
        #endregion

        #region Ctor

        public StudioDbContext()
            : base("name=StudioDbConnectionStrings")
        {
        }

        public StudioDbContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {
        }

        #endregion

        #region Utilities

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

        #endregion
    }
}
